package com.pan.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class RedisService {

    @Autowired
    private RedisTemplate redisTemplate;;


    public String getBykey(String key) {

        String s = (String)redisTemplate.opsForValue().get(key);

        return s;
    }


}
